class Demo{
    public String name;
    public int age;

    public Demo(String name) {
        this.name = name;
    }
}
public class Demo1 extends Demo{

    public Demo1(String name) {
        super(name);
    }
    
}

class Test6{
    private String name;
    {
        System.out.println("实例代码块2");
    }
    static {
        System.out.println("静态代码块2");
    }
    Test6()
    {
        System.out.println("构造方法2");
    }
}